#ifndef FUZZYXMLWRITER_H
#define FUZZYXMLWRITER_H

#include "xmlwriter.h"
#include "collection.h"
#include "rule.h"

class FuzzyXmlWriter : public XmlWriter
{
public:
    FuzzyXmlWriter(const QString& fileName);

    void writeCollection(const Collection& collection);

    void writeRules(const QVector<Rule*>& rules);

    void beginScenario();
    void closeScenario();

private:

    void writeSet(const BasicMembershipFunction& set);
    void writeRule(const Rule& rule);

};

#endif // FUZZYXMLWRITER_H
